package com.vsd.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.vsd.domain.UserCreditLog;
import com.vsd.repository.UserCreditLogRepository;
import com.vsd.service.UserCreditLogService;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Service
@Transactional
public class UserCreditLogServiceImpl implements UserCreditLogService {

	@SuppressWarnings("unused")
	private static final Logger LOGGER = LoggerFactory
			.getLogger(UserCreditLogServiceImpl.class);
	
	@Autowired
	JdbcTemplate jdbcTemplate;
	
	@Autowired
	private UserCreditLogRepository userCreditLogRepository;
 

	@Override
	public Page<UserCreditLog> findByUserId(String userId, Pageable p) {
		return userCreditLogRepository.findByUserId(userId, p);
	}

	
}
